class Media {
  String? mediaType;
  String? mediaPath;
  String? thumbUrl;
  String? middleThumbUrl;
  String? mediaUrl;
  int? userId;
  int? videoId;
  String? title;
  String? describe;
  int? like;

  Media(
      {this.mediaType,
        this.mediaPath,
        this.thumbUrl,
        this.middleThumbUrl,
        this.mediaUrl,
        this.userId,
        this.videoId,
        this.title,
        this.describe,
        this.like});

  Media.fromJson(Map<String, dynamic> json) {
    mediaType = json['mediaType'];
    mediaPath = json['mediaPath'];
    thumbUrl = json['thumbUrl'];
    middleThumbUrl = json['middleThumbUrl'];
    mediaUrl = json['mediaUrl'];
    userId = json['userId'];
    videoId = json['videoId'];
    title = json['title'];
    describe = json['describe'];
    like = json['like'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['mediaType'] = this.mediaType;
    data['mediaPath'] = this.mediaPath;
    data['thumbUrl'] = this.thumbUrl;
    data['middleThumbUrl'] = this.middleThumbUrl;
    data['mediaUrl'] = this.mediaUrl;
    data['userId'] = this.userId;
    data['videoId'] = this.videoId;
    data['title'] = this.title;
    data['describe'] = this.describe;
    data['like'] = this.like;
    return data;
  }
}